package com.caocaog.market.front;

import com.caocaog.market.annotation.IgnoreAuth;
import com.caocaog.market.entity.ImagesCarousel;
import com.caocaog.market.service.ImagesCarouselService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.base.controller.GenericController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Api(value = "imagesCarousel", tags = "轮播图管理移动端API")
@RequestMapping("/api/imagesCarousel")
public class ImagesCarouselFrontController extends GenericController<ImagesCarousel, ImagesCarouselService> {

    /**
     * 获取全部的轮播图
     * @return 全部的轮播图信息
     */
    @IgnoreAuth
    @ApiOperation(value = "根据类型获取轮播图", notes = "根据轮播图类型获取轮播图信息")
    @GetMapping("/list")
    public Result<?> getImagesCarousel() {
        return Result.OK(super.service.getImagesCarouselList());
    }

}
